def foo[T: "MyClass"](x: T) -> T: ...
            <ref>

class MyClass: ...